package com.yunxi.service.localService.sys;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.service.IServicePlus;
import com.yunxi.core.web.ApiResult;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.model.sys.Area;
import com.yunxi.sys.pojo.AreaVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * <p>
 * 地域信息 服务类
 * </p>
 *
 * @author
 * @since 2019-05-07
 */
public interface AreaService extends IServicePlus<Area> {

    List<AreaVO> listByPid(String selectvalues);

    Object treeByPid() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;

    List<AreaVO> listProvince();

    Object treeByType(Integer type) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;

   void saveBatchCas(AreaVO areaVO) throws Exception;

   Object loadCas(AreaVO areaVO);

   void delCas(List<AreaVO> areaVOList);

   ApiResult listAllProvince(AreaVO areaVO,LoginInfo loginInfo);

   PageInfo<AreaVO> findPageNotExit(AreaVO areaVo, Integer pageNum, Integer pageSize);

   String getBigRegionByCityCode(String cityCode);

    AreaVO queryAreaByPartnerCode(String partnerCode);
}
